/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"DB4CAE57-5AE1-4F15-A2A6-D12CE6254121",variableType:4}
 */
var gUsuarioModelo = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"A6F236C0-47CB-428E-B88E-D7D9272C2394",variableType:4}
 */
var gUno = 1;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"CE0F50A0-C2EF-4EAF-8567-7FA027DEAA83",variableType:4}
 */
var gFormCarga = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"50109425-7FBD-423F-97A4-F2DE2FA87AFD",variableType:4}
 */
var gGrupoCarga = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"2EF4DA90-85AC-474C-9BC5-683E275FA66B",variableType:4}
 */
var gSolucionCarga;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"58CE4274-5EE1-4649-9961-C7DDC9F12ADC",variableType:4}
 */
var gUsrID = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"53E78CB9-0FBB-4E7A-A9BD-C829D5851729",variableType:4}
 */
var gUsuarioCarga = null;

/**
 *
 * @properties={typeid:24,uuid:"1FED1233-5520-4E94-A82A-A801F840855A"}
 */
function autoSaveOff() {
	databaseManager.setAutoSave(false)
}

/**
 *
 * @properties={typeid:24,uuid:"6B74C497-685B-481B-930B-DF8D491CCB22"}
 */
function hashPass(p) {
	return utils.stringMD5HashBase64(p)	
}

/**
 * @properties={typeid:24,uuid:"EB82B54F-7D6C-4551-9134-9CBFE0949303"}
 */
function salir() {
	security.logout()
	application.exit()
}

/**
 * Callback method for when solution is opened.
 *
 * @properties={typeid:24,uuid:"DF046383-1912-40B4-B071-9E5C1EC2C57B"}
 * @AllowToRunInFind
 */
function onSolutionOpen() {
	//FILTRO POR USERV
	/**@type {JSFoundSet<db:/fwk_navigation_infocom/uservs>} */
	var $fs = databaseManager.getFoundSet('fwk_navigation_infocom','uservs')
	
	$fs.find()
	$fs.login_nombre = security.getUserName()
	$fs.search()
	
	globals.gUsrID = $fs.userv_id
	databaseManager.addTableFilterParam('fwk_navigation_infocom',null,'userv_id','=',globals.gUsrID,'FILTRO')

}
